import { axios } from '../../utils/request'

/**
 * 生产线管理
 */
const api = {
    save: '/erp/productionLine/save',
    pageList: '/erp/productionLine/pageList',
    delete: '/erp/productionLine/delete'
}

/**
 * 保存
 */
export function Save(data) {
    return axios({
        url: api.save,
        method: "post",
        data: data
    })
}

/**
 * 生产线列表
 */
export function PageProductionLineList(data) {
    return axios({
        url: api.pageList,
        method: "get",
        params: data
    })
}

/**
 * 删除
 */
export function DeleteById(data) {
    return axios({
        url: api.delete,
        method: "DELETE",
        params: data
    })
}